package com.jieshuibao.model.db;

import java.util.ArrayList;
import java.util.List;

public class AdvisoryUserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private int pageIndex;

    private int pageSize;

    public AdvisoryUserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex=pageIndex;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageSize(int pageSize) {
        this.pageSize=pageSize;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public AdvisoryUserExample(int pageIndex, int pageSize) {
        this();
        this.pageIndex=pageIndex;
        this.pageSize=pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUserOneIsNull() {
            addCriterion("userOne is null");
            return (Criteria) this;
        }

        public Criteria andUserOneIsNotNull() {
            addCriterion("userOne is not null");
            return (Criteria) this;
        }

        public Criteria andUserOneEqualTo(String value) {
            addCriterion("userOne =", value, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneNotEqualTo(String value) {
            addCriterion("userOne <>", value, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneGreaterThan(String value) {
            addCriterion("userOne >", value, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneGreaterThanOrEqualTo(String value) {
            addCriterion("userOne >=", value, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneLessThan(String value) {
            addCriterion("userOne <", value, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneLessThanOrEqualTo(String value) {
            addCriterion("userOne <=", value, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneLike(String value) {
            addCriterion("userOne like", value, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneNotLike(String value) {
            addCriterion("userOne not like", value, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneIn(List<String> values) {
            addCriterion("userOne in", values, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneNotIn(List<String> values) {
            addCriterion("userOne not in", values, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneBetween(String value1, String value2) {
            addCriterion("userOne between", value1, value2, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOneNotBetween(String value1, String value2) {
            addCriterion("userOne not between", value1, value2, "userOne");
            return (Criteria) this;
        }

        public Criteria andUserOtherIsNull() {
            addCriterion("userOther is null");
            return (Criteria) this;
        }

        public Criteria andUserOtherIsNotNull() {
            addCriterion("userOther is not null");
            return (Criteria) this;
        }

        public Criteria andUserOtherEqualTo(String value) {
            addCriterion("userOther =", value, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherNotEqualTo(String value) {
            addCriterion("userOther <>", value, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherGreaterThan(String value) {
            addCriterion("userOther >", value, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherGreaterThanOrEqualTo(String value) {
            addCriterion("userOther >=", value, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherLessThan(String value) {
            addCriterion("userOther <", value, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherLessThanOrEqualTo(String value) {
            addCriterion("userOther <=", value, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherLike(String value) {
            addCriterion("userOther like", value, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherNotLike(String value) {
            addCriterion("userOther not like", value, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherIn(List<String> values) {
            addCriterion("userOther in", values, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherNotIn(List<String> values) {
            addCriterion("userOther not in", values, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherBetween(String value1, String value2) {
            addCriterion("userOther between", value1, value2, "userOther");
            return (Criteria) this;
        }

        public Criteria andUserOtherNotBetween(String value1, String value2) {
            addCriterion("userOther not between", value1, value2, "userOther");
            return (Criteria) this;
        }

        public Criteria andOnlyIdIsNull() {
            addCriterion("onlyId is null");
            return (Criteria) this;
        }

        public Criteria andOnlyIdIsNotNull() {
            addCriterion("onlyId is not null");
            return (Criteria) this;
        }

        public Criteria andOnlyIdEqualTo(String value) {
            addCriterion("onlyId =", value, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdNotEqualTo(String value) {
            addCriterion("onlyId <>", value, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdGreaterThan(String value) {
            addCriterion("onlyId >", value, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdGreaterThanOrEqualTo(String value) {
            addCriterion("onlyId >=", value, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdLessThan(String value) {
            addCriterion("onlyId <", value, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdLessThanOrEqualTo(String value) {
            addCriterion("onlyId <=", value, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdLike(String value) {
            addCriterion("onlyId like", value, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdNotLike(String value) {
            addCriterion("onlyId not like", value, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdIn(List<String> values) {
            addCriterion("onlyId in", values, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdNotIn(List<String> values) {
            addCriterion("onlyId not in", values, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdBetween(String value1, String value2) {
            addCriterion("onlyId between", value1, value2, "onlyId");
            return (Criteria) this;
        }

        public Criteria andOnlyIdNotBetween(String value1, String value2) {
            addCriterion("onlyId not between", value1, value2, "onlyId");
            return (Criteria) this;
        }

        public Criteria andMessageIsNull() {
            addCriterion("message is null");
            return (Criteria) this;
        }

        public Criteria andMessageIsNotNull() {
            addCriterion("message is not null");
            return (Criteria) this;
        }

        public Criteria andMessageEqualTo(String value) {
            addCriterion("message =", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageNotEqualTo(String value) {
            addCriterion("message <>", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageGreaterThan(String value) {
            addCriterion("message >", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageGreaterThanOrEqualTo(String value) {
            addCriterion("message >=", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageLessThan(String value) {
            addCriterion("message <", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageLessThanOrEqualTo(String value) {
            addCriterion("message <=", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageLike(String value) {
            addCriterion("message like", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageNotLike(String value) {
            addCriterion("message not like", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageIn(List<String> values) {
            addCriterion("message in", values, "message");
            return (Criteria) this;
        }

        public Criteria andMessageNotIn(List<String> values) {
            addCriterion("message not in", values, "message");
            return (Criteria) this;
        }

        public Criteria andMessageBetween(String value1, String value2) {
            addCriterion("message between", value1, value2, "message");
            return (Criteria) this;
        }

        public Criteria andMessageNotBetween(String value1, String value2) {
            addCriterion("message not between", value1, value2, "message");
            return (Criteria) this;
        }

        public Criteria andLastTimeIsNull() {
            addCriterion("lastTime is null");
            return (Criteria) this;
        }

        public Criteria andLastTimeIsNotNull() {
            addCriterion("lastTime is not null");
            return (Criteria) this;
        }

        public Criteria andLastTimeEqualTo(Long value) {
            addCriterion("lastTime =", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeNotEqualTo(Long value) {
            addCriterion("lastTime <>", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeGreaterThan(Long value) {
            addCriterion("lastTime >", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeGreaterThanOrEqualTo(Long value) {
            addCriterion("lastTime >=", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeLessThan(Long value) {
            addCriterion("lastTime <", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeLessThanOrEqualTo(Long value) {
            addCriterion("lastTime <=", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeIn(List<Long> values) {
            addCriterion("lastTime in", values, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeNotIn(List<Long> values) {
            addCriterion("lastTime not in", values, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeBetween(Long value1, Long value2) {
            addCriterion("lastTime between", value1, value2, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeNotBetween(Long value1, Long value2) {
            addCriterion("lastTime not between", value1, value2, "lastTime");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}